﻿using ProjectFootball.MVC.Foundation;
using ProjectFootball.MVC.Foundation.ResourceLibrary;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Security.Principal;

namespace ProjectFootball.MVC.Models.EntityFramework.Entities
{
    public class Country : BaseApprovableEntity, IApprovableEntity
    {
        #region Constructors
        public Country()
        {
        }

        public Country(IPrincipal user, CreateType createType, Guid approvalGuid, DateTime activeFrom, DateTime activeTo)
            :base(user, createType, approvalGuid)
        {
            ActiveFrom = activeFrom;
            ActiveTo = activeTo;
        }
        #endregion

        [StringLength(50)]
        [Required]
        public string CountryName { get; set; }

        public DateTime ActiveFrom { get; set; }

        public DateTime ActiveTo { get; set; }
    }
}